package com.doubtech.ahome.widgets.openclock;

/**
 * <p>For any widget wish to receive more life cycle event, it should implement this interface.
 * For example, you want to clean something before the widget is removed from screen.</p>
 * <p>This interface is optional so you can ignore it if you don't care such event. If you do care,
 * please also note don't perform long-time operation otherwise you will block main thread.</p>
 * 
 * @author luma
 */
public interface LifeCycleSupport {
	/**
	 * <p>After user delete this widget view from screen, it will be invoked. Currently this
	 * is the only method in the interface. For other life cycle phase, you can override 
	 * onFinishInflate, onAttachedToWindow, onDetachedFromWindow</p> 
	 */
	public void onDestory();
}
